package com.blog.backend.mapper;


import com.blog.backend.domain.BlogAccess;
import com.blog.backend.resp.BlogAssessResp;
import com.blog.backend.resp.IndexArticleResp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BlogAccessMapper {
    int deleteByPrimaryKey(String assessId);

    int insert(BlogAccess record);

    int insertSelective(BlogAccess record);

    BlogAccess selectByPrimaryKey(String assessId);

    int updateByPrimaryKeySelective(BlogAccess record);

    int updateByPrimaryKeyWithBLOBs(BlogAccess record);

    int updateByPrimaryKey(BlogAccess record);

    Integer selectTotal();

    List<BlogAccess> selectTenAccess();

    List<IndexArticleResp>  selectHotArticle(Integer num);

    Integer selectTodayAssess(@Param("startTime") String startTime, @Param("endTime") String endTime);

    List<BlogAssessResp> selectTodayAssessList(String begin, String end);

    List<BlogAssessResp> getAllAssessList();

    BlogAssessResp selectAssessById(String assessId);

    List<BlogAssessResp> getNewAssessList();

    List<IndexArticleResp> getNewArticle(int num);

    List<BlogAssessResp> getArticleAssessByArticleId(String articleId);
}